﻿using UnityEngine;
using System.Collections;

public class TestOrbe : MonoBehaviour {

	void OnTriggerEnter2D(Collider2D coll){

		if (coll.gameObject.tag != "player") {
						if ((gameObject.tag == "ObjetFeu" && coll.gameObject.tag == "Fire_Bolt")
								|| (gameObject.tag == "ObjetEau" && coll.gameObject.tag == "Water_Bolt")
								|| (gameObject.tag == "ObjetAir" && coll.gameObject.tag == "Air_Bolt")) {
								this.gameObject.SetActive (false);
								Destroy (coll.gameObject);
						}
		}
	}
}
